From: Daiki Ueno Date: Sun, 24 Oct 2010 03:12:17 +0000 (+0900) Subject: Try to use "gpg2" if "gpg" isn't available. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5971 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b8ee84e0957e1b7fa3f0a1de493197fa6d56a8f6;p=emacs.git Try to use "gpg2" if "gpg" isn't available. * epg-config.el (epg-gpg-program): Try to use "gpg2" if "gpg" executable is not available on the system (Bug#7268). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5fa551aeb6e..78c474c32dd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-10-24 Daiki Ueno + + * epg-config.el (epg-gpg-program): Try to use "gpg2" if "gpg" + executable is not available on the system (Bug#7268). + 2010-10-24 Glenn Morris * select.el (selection-coding-system, next-selection-coding-system): diff --git a/lisp/epg-config.el b/lisp/epg-config.el index 37c5d01fb1d..a439fa0480e 100644 --- a/lisp/epg-config.el +++ b/lisp/epg-config.el @@ -37,7 +37,9 @@ :version "23.1" :group 'data) -(defcustom epg-gpg-program "gpg" +(defcustom epg-gpg-program (or (executable-find "gpg") + (executable-find "gpg2") + "gpg") "The `gpg' executable." :group 'epg :type 'string)